scripty2

namespace S2

Description

The S2 namespace is the main container for the various scripty2 frameworks and also provides the libraries' version number and information about extensions.

Methods

Constants

  • Version #

    This constant lists the version of scripty2.

Class methods

  • viewportOverlay #

    S2.viewportOverlay() -> element

    Creates a new absolutely positioned DIV element with the dimensions of the viewport. The element is not inserted into the DOM.

    This can be used for a quick overlay like this:

    $(document.body).insert(S2.viewportOverlay().setStyle('background:#000;opacity:0.5'));